Dear Forum-Mates, Column c for c in current Module do print (title c) "\n"
/* --------------------------------------------------------------------------- */
/* Creates or (when already exists) the module which will contain the results */
pragma runLim, 0
string mdlStatFullname = "/M3AR/Radio Scope/tmp/REQ_Statistics"
Module mdlStat
if (!exists module mdlStatFullname){
mdlStat = create (mdlStatFullname, "Counting requirements and testcases", "Stat", 1, false)
} else {
mdlStat = edit (mdlStatFullname, false)
}
current = mdlStat
/* Create the user specific attributes, if the does not exists yet */
AttrDef adNoReq = find(mdlStat, "No. Req."),
adNoTc = find(mdlStat, "No. TC")
Column colNoReq, colNoTc, colDummy
int numColumns = 0
if (null adNoReq){
adNoReq = create object type "Integer" attribute "No. Req."
}
if (null adNoTc){
adNoTc = create object type "Integer" attribute "No. TC"
}
/* Determine the number of already existing columns */
for colDummy in mdlStat do numColumns++
string attrNameNoReq = adNoReq.name
colNoReq = insert (column numColumns)
attribute(colNoReq, attrNameNoReq)
width(colNoReq, 200)
title(colNoReq, attrNameNoReq)
string attrNameNoTc = adNoTc.name
colNoTc = insert (column numColumns++)
attribute(colNoTc, attrNameNoTc)
width(colNoTc, 200)
title(colNoTc, attrNameNoTc)
/* Create one object for testing reason */
Object o = null
if (!null last(mdlStat)){
o = create(after(last(mdlStat)))
} else {
o = create(mdlStat)
}
o."Object Heading" = identifier(o)
o."Object Text" = identifier(o)
o."No. Req." = 100 //only example
o."No. TC" = 150 //only example
save(mdlStat)
close (mdlStat)
refreshDBExplorer
/* --------------------------------------------------------------------------- */
vasgyuszi - Wed Mar 17 05:40:00 EDT 2010 |
Re: My new Columns are not visible, how should I fix it?
Hello,
for colDummy in mdlStat do numColumns++
//...
colNoReq = insert (column numColumns)
//...
colNoTc = insert (column numColumns++)
//...
save(view("the name of your view"))
setDefaultViewForUser(mdlStat , "the name of your view"))
|
Re: My new Columns are not visible, how should I fix it? PDU - Wed Mar 17 06:47:52 EDT 2010
Hello,
for colDummy in mdlStat do numColumns++
//...
colNoReq = insert (column numColumns)
//...
colNoTc = insert (column numColumns++)
//...
save(view("the name of your view"))
setDefaultViewForUser(mdlStat , "the name of your view"))
thanks alot for the quick help! It works perfecly. Excellent! Best regards, vasgyuszi |